﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace TestProject.ClassTest
{
    public class BaseClass
    {
        public virtual void Say() => Console.WriteLine("I am father");

        public virtual void Test()
        {
            Say();
            Console.WriteLine("father test \r\n");
        }
    }

    public class SonClass : BaseClass
    {
        public new void Say() => Console.WriteLine("I am son");

        public override void Test()
        {
            Say();
            Console.WriteLine("son test \r\n");
        }

    }

}